﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sealight.Core.DataAdapter;

namespace Sealight.Core.Domain
{
   public class ProjectCategoryEntity
    {
        public virtual Guid ProjectCategoryID { get; set; }       
        public virtual string Name { get; set; }
        public virtual string Description { get; set; }
        public virtual bool IsActive { get; set; }
        public virtual DateTime CreatedDate { get; set; }
        public virtual DateTime UpdatedDate { get; set; }
              
        public virtual LanguageEntity Language { get; set; }

        public virtual project_category ToDataAdapter()
        {
            project_category entity = new project_category
            {
                id = this.ProjectCategoryID,               
                name = this.Name,
                description = this.Description,
                is_active = this.IsActive,
                created_date = this.CreatedDate,
                updated_date = this.UpdatedDate
            };

            if (this.Language != null)
                entity.language = this.Language.ToDataAdapter();
                      

            return entity;
        }
    }
}
